#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void Bubble(int* nums, int size)
{
	for (int i = 1; i < size ; i++)
	{
		for (int j = 0; j < size - 1; j++)
		{
			if (nums[j] > nums[j + 1])
			{
				int tmp = nums[j];
				nums[j] = nums[j+1];
				nums[j+1] = tmp;
			}
		}
	}
}
int main()
{
	int arr[200] = {0};
	int a = 0;
	scanf("%d", &a);
	for (int i = 0; i < a; i++)
	{
		scanf("%d", &arr[i]);
	}
	Bubble(arr, a);
	for (int i = 0; i < a; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}